<?php
session_start();
if (isset($_POST['lat']) && isset($_SESSION['openid'])){
    include '../c/config.php';
    $mysqli = new mysqli($dbhost, $dbuser, $dbpwd, $dbName);
    $mysqli->query("SET NAMES utf8");
    
    $dizhi=addslashes(trim($_POST['dizhi']));
    $mysqli->query("update users set lat='".$_POST['lat']."',lng='".$_POST['lon']."', dizhi='".$dizhi."' where openid='".$_SESSION['openid']."'   ");
    $mysqli->close();
    
   
}
?>
